package cn.juque.redoctopus.api.constants;

/**
 * @author nuoka
 * @version 1.0.0
 * <li></li>
 * @date 2021/11/7 20:52
 **/
public enum LogIndexEnum {

    /**
     * enum
     */
    INDEX_NAME("red_octopus_log","索引名称"),
    SERVICE_NO("service_no", "服务编号"),
    SERVICE_NAME("service_name", "服务名称"),
    LEVEL("level", "日志级别"),
    LOG_TIME("log_time", "日志时间"),
    MESSAGE("message", "消息"),
    THROWABLE("throwable", "堆栈"),
    IP("ip", "IP");

    /**
     * code
     */
    private String code;

    /**
     * 描述
     */
    private String message;

    LogIndexEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
